function generate(){
    var chars='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    var verificationCode=''
    for(var i=0;i<6;i++){
        verificationCode+=chars.charAt(Math.floor(Math.random()*36));
    }
    return verificationCode;
}

function checkVerificationCode(code1,code2){
    if(code1.toUpperCase()==code2.toUpperCase()){
        return true;
    }
    else{
        return false;
    }
}
export{
    generate,
    checkVerificationCode
}
